projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
136b7da
)
(comment-indent): Ensure space before added comment.
author
Dave Love
<fx@gnu.org>
Thu, 13 Feb 2003 15:54:19 +0000
(15:54 +0000)
committer
Dave Love
<fx@gnu.org>
Thu, 13 Feb 2003 15:54:19 +0000
(15:54 +0000)
lisp/newcomment.el
patch
|
blob
|
history
diff --git
a/lisp/newcomment.el
b/lisp/newcomment.el
index e108264903c69fe2c8c75efe6faf1f011359c3bb..74d255fabf026cd6b1000c203b678a8862c348d9 100644
(file)
--- a/
lisp/newcomment.el
+++ b/
lisp/newcomment.el
@@
-473,6
+473,10
@@
If CONTINUE is non-nil, use the `comment-continue' markers if any."
;; are in column 0, so we first go to the likely target column.
(indent-to comment-column)
(setq begpos (point))
+ ;; Ensure there's a space before the comment for things
+ ;; like sh where it matters (as well as being neater).
+ (unless (eq ?\ (char-syntax (char-before)))
+ (insert ?\ ))
(insert starter)
(setq cpos (point-marker))
(insert ender)))